package com.abc.base.controller;

import com.abc.base.common.model.HouseInfo;
import com.abc.base.common.response.Result;
import com.abc.base.rpc.impl.SparkServiceUser;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;


@RestController
@RequestMapping("/processHouseBase")
public class ProcessController {
    @Autowired
    private SparkServiceUser sparkServiceUser;

    @GetMapping("/getHouseBaseInfo")
    public Result<Integer> getHouseBaseInfo() {
        return Result.success(sparkServiceUser.getHouseInfoList().size());
    }
}
